package edu.sctu.boot.admin.generator.vue;

import edu.sctu.boot.admin.generator.utils.BizPathUtils;

public class VueConf {
    public static final String PROJECT_PATH = "E:/hl/hl-admin-ui"; // (1) 指定项目路径
    public static final String TABLE_NAME = "t_spg_poi_entry"; //(2) 指定表名

    public static final String BIZ_NAME = BizPathUtils.getBizName(TABLE_NAME);
    public static final String ENTITY = BizPathUtils.removePrefix(TABLE_NAME);
    public static final String ENTITY_SERVER = String.format("export const %sServer = '/%s/%s'",
            ENTITY, BIZ_NAME, ENTITY);
    public static final String API_ENTITY = String.format("%s/src/api/modules/bootAdmin/%s/%s.js",
            PROJECT_PATH, BIZ_NAME, ENTITY);
    public static final String STORE_ENTITY = String.format("%s/src/store/modules/bootAdmin/modules/%s.js",
            PROJECT_PATH, ENTITY);
    public static final String VIEW_INDEX_FILE = String.format("%s/src/views/bootAdmin/%s/%s/index.js",
            PROJECT_PATH, BIZ_NAME, ENTITY);
    public static final String VIEW_PAGE_FILE = String.format("%s/src/views/bootAdmin/%s/%s/page.vue",
            PROJECT_PATH, BIZ_NAME, ENTITY);
    public static final String BASE_SERVER_FILE = String.format("%s/src/api/baseServer.js", PROJECT_PATH);
}
